package www.wf.pro.enums;

/**
 * @author wangfei
 * @date 2020-07-27 20:53
 */

public enum ResultEnum {

    SUCCESS(200, "成功"),

    FAIL(201, "操作失败，请稍后重试"),

    NO_PARAM(202, "参数缺失"),

    PARAM_CHECK(203, "参数校验失败"),

    NO_DATA(204, "无数据"),

    FILE_MAX(206, "文件过大"),

    NO_LOGIN(401, "未登陆"),

    LOGIN_OUT(402, "登陆过期"),

    ERROR(500, "网络错误"),
    //删除 网络链接失败，
    FAULT_TOLERANT(501, "请稍后重试"),
    ;


    /**
     * 状态码
     */
    private Integer code;

    /**
     * 返回消息
     */
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
